package com.sgu6.sgu6_machine.dto;

import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonParser;
import com.sgu6.sgu6_machine.db.converter.GoodsSimpleConverter;

import org.greenrobot.greendao.annotation.Convert;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.ToMany;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.converter.PropertyConverter;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import org.greenrobot.greendao.annotation.Generated;

@Entity
public class ListGoodsSimpleDto implements Serializable {
    public String varietyName;
    @Id
    public String barnId;
    @Convert(converter = GoodsSimpleConverter.class, columnType = String.class)
    public List<GoodsSimpleDto> goodsSortDtoList;


    @Generated(hash = 1355838921)
    public ListGoodsSimpleDto(String varietyName, String barnId,
            List<GoodsSimpleDto> goodsSortDtoList) {
        this.varietyName = varietyName;
        this.barnId = barnId;
        this.goodsSortDtoList = goodsSortDtoList;
    }

    @Generated(hash = 1558054943)
    public ListGoodsSimpleDto() {
    }


    public List<GoodsSimpleDto> getGoodsSortDtoList() {
        return this.goodsSortDtoList;
    }

    public void setGoodsSortDtoList(List<GoodsSimpleDto> goodsSortDtoList) {
        this.goodsSortDtoList = goodsSortDtoList;
    }

    public String getBarnId() {
        return this.barnId;
    }

    public void setBarnId(String barnId) {
        this.barnId = barnId;
    }

    public String getVarietyName() {
        return this.varietyName;
    }

    public void setVarietyName(String varietyName) {
        this.varietyName = varietyName;
    }


}
